package com.bluesky.plum.domain;

import java.util.ArrayList;
import java.util.List;

public class City {

	public static List<City> allCities;

	static {
		allCities = new ArrayList<City>();

		allCities.add(new City("Beijing", "010"));
		allCities.add(new City("Shanghai", "021"));
	}

	private String name;
	private String zipCode;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public City(String name, String zipCode) {
		this.name = name;
		this.zipCode = zipCode;
	}

	@Override
	public String toString() {

		return String.format("%s %s", name, zipCode);

	}
}
